Scenario #5002: Unsubscribe Person and Contact From Mailinglist

Properties

Required

Given

name value
mailingList operations-announce
subscriberEMailAddress michael.miller@example.org

Subscription: michael.miller@example.org

HTTP GET "/api/hs/office/relations?relationType=SUBSCRIBER&mark=operations-announce&contactData=michael.miller%40example.org" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
[ {
  "uuid" : "d703d014-2e23-4c95-a59b-cfa1bd1252e0", // Subscription: Michael Miller to operations-announce
  "anchor" : {
    "uuid" : "efe3662a-02d9-4fa9-a4f0-29dfd893fd78", // Person: Test AG
    "personType" : "LEGAL_PERSON",
    "tradeName" : "Test AG",
    "salutation" : null,
    "title" : null,
    "givenName" : null,
    "familyName" : null
  },
  "holder" : {
    "uuid" : "93d4b5cc-c436-4172-85c7-8a4b13af8a29", // Person: Michael Miller
    "personType" : "NATURAL_PERSON",
    "tradeName" : null,
    "salutation" : null,
    "title" : null,
    "givenName" : "Michael",
    "familyName" : "Miller"
  },
  "type" : "SUBSCRIBER",
  "mark" : "operations-announce",
  "contact" : {
    "uuid" : "62cb7858-de45-4f26-91c5-d03afa083440", // Contact: michael.miller@example.org
    "caption" : "Michael Miller",
    "postalAddress" : { },
    "emailAddresses" : {
      "main" : "michael.miller@example.org"
    },
    "phoneNumbers" : { }
  }
} ]

In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.

Delete the Subscriber-Relation by its UUID

HTTP DELETE "/api/hs/office/relations/d703d014-2e23-4c95-a59b-cfa1bd1252e0" // Subscription: michael.miller@example.org \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 204 NO_CONTENT 

generated on 2026-08-10 04:42:27 for branch HEAD